import request from '@/utils/request'
/**
 * 商品二维码
 * @param {*} params
 * @returns
 */
export function exportGetImgExcel(params) {
  return request({
    url: '/api/Export/GetImgExcel',
    method: 'get',
    baseURL: public_config.labor_api,
    responseType: 'blob',
    params
  })
}

/**
 * 导出产品销售流水
 * @param {*} params
 * @returns
 */
export function GetProductLogExcel(params) {
  return request({
    url: '/api/Export/GetProductLogExcel',
    method: 'get',
    baseURL: public_config.labor_api,
    responseType: 'blob',
    params
  })
}
/**
 * 导出库存列表
 * @param {*} params
 * @returns
 */
export function GetProductInventoryExcel(params) {
  return request({
    url: '/api/Export/GetProductInventoryExcel',
    method: 'get',
    baseURL: public_config.labor_api,
    responseType: 'blob',
    params
  })
}

/**
 * 导出退货列表
 * @param {*} params
 * @returns
 */
export function GetOrdersReturnListExcel(params) {
  return request({
    url: '/api/Export/GetOrdersReturnListExcel',
    method: 'get',
    baseURL: public_config.labor_api,
    responseType: 'blob',
    params
  })
}

/**
 * 导出收银订单列表
 * @param {*} params
 * @returns
 */
export function GetOrdersListExcel(params) {
  return request({
    url: '/api/Export/GetOrdersListExcel',
    method: 'get',
    baseURL: public_config.labor_api,
    responseType: 'blob',
    params
  })
}

/**
 * 导出库存流水
 * @param {*} params
 * @returns
 */
export function GetProductInventoryLogExcel(params) {
  return request({
    url: '/api/Export/GetProductInventoryLogExcel',
    method: 'get',
    baseURL: public_config.labor_api,
    responseType: 'blob',
    params
  })
}

/**
 * 导出员工消费统计
 * @returns
 */
export function GetEmployeeConsumeStatisticsExcel(params) {
  return request({
    url: '/api/Export/GetEmployeeConsumeStatisticsExcel',
    method: 'get',
    baseURL: public_config.labor_api,
    responseType: 'blob',
    params
  })
}

/**
 * 导出月备货报表
 * @returns
 */
export function GetExcelMonthSupplerMaterial(params) {
  return request({
    url: '/api/Export/GetExcelMonthSupplerMaterial',
    method: 'get',
    baseURL: public_config.labor_api,
    responseType: 'blob',
    params
  })
}
